Page({
  data: {
    noticeDetail: {}
  },
  onLoad ({ id }) {
    this.getNoticeDetail(id)
  },
  async getNoticeDetail (id) {
    const data = await wx.http.get('/announcement/' + id)
    if (data.code !== 10000) return wx.utils.toast()
    this.setData({ noticeDetail: data.data })
  }
})
